#include "Precompile.h"
#include "EngineInterface.h"

namespace Core{
	EngineInterface::EngineInterface(){
		Core::GeneralSettings::loadConfigFile(std::string("Config.ini"));
	}

	void EngineInterface::initialize(){
	
	}

	void EngineInterface::finalize(){
		m_soundThreadRunning = false;
		m_renderThreadRunning = false;

		if(m_soundThread && m_soundThread->isRunning())
			m_soundThread->join();
		if(m_renderThread && m_renderThread->isRunning())
			m_renderThread->join();

		m_inputSystem.reset();
	}
}